/*reset.css*/
/*reset css: 用于重置浏览器对元素样式的影响, 也可以把一些常用的样式写在里面*/
/*注: 一般使用公司自己的reset.css, 推荐Normalize.css*/
*	{
	padding: 0;
	margin: 0;
}

/*页面和屏幕保持一致*/
html, body {
	width: 100%;
	height: 100%;
}

/*加载页面*/
#loading-wrap {
	height: 100%;
	background-color: #000;
	/*background-color: rgb(0, 0, 0);*/
}

#loading {
	width: 100px;
	height: 100px;
	background-color: #f00;
	border-radius: 50%;
	text-align: center;
	line-height: 100px;
	font-size: 30px;
	color: #fff;
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	margin: auto;
	animation: loading-rotate 2s linear infinite;
}

@-webkit-keyframes loading-rotate{
	from{
		transform: rotateY(0deg);
	}
	to{
		transform: rotateY(360deg);
	}
}

/*第一个页面*/
#page1 {
	height: 100%;
	background: url(../img/bg.jpg) no-repeat;
	background-size: 100% 100%;
	display: none;
}

#p1-challenge {
	width: 75%;
	position: absolute;
	left: 20%;
	top: 10%;
}

#p1-slogan {
	width: 95%;
	position: absolute;
	top: 23%;
}

#p1-money {
	width: 20%;
	position: absolute;
	top: 17%;
	left: 6%;
}

#p1-start {
	width: 50%;
	position: absolute;
	top: 55%;
	left: 25%;
}

#p1-hand {
	width: 20%;
	position: absolute;
	left: 60%;
	bottom: 20%;
}

/*导航栏*/
.button-wrap {
	width: 90%;
	position: absolute;
	left: 5%;
	bottom: 5%;
}

.rank-button {
	width: 20%;
	position: absolute;
	left: 7%;
	bottom: 7%;
}

.rule-button {
	width: 20%;
	position: absolute;
	left: 29%;
	bottom: 7%;
}

.prize-button {
	width: 20%;
	position: absolute;
	left: 51%;
	bottom: 7%;
}

.explain-button {
	width: 20%;
	position: absolute;
	left: 73%;
	bottom: 7%;
}

/*弹出页*/
.alert-wrap {
	height: 100%;
	width: 100%;
	position: absolute;
	left: 0;
	top: 0;
	background-color: rgba(0, 0, 0, .6);
	display: none;
}

form {
	background: url(../img/p1_from.png) no-repeat;
	background-size: 100% 100%;
	width: 75%;
	height: 50%;
	position: absolute;
	left: 12.5%;
	top: 25%;
}

form>input[type=text] {
	width: 70%;
	height: 10%;
	position: absolute;
	left: 15%;
	border: 2px solid #f00;
	border-radius: 8px;
	background-color: #F1BA2B;
	font-size: 20px;
	padding-left: 2%;
	outline: none;
}

form>input[type=text]:nth-child(1) {
	top: 30%;
}

form>input[type=text]:nth-child(2) {
	top: 45%;
}

form>input[type=text]:nth-child(3) {
	top: 60%;
}

form>input[type=button] {
	background: url(../img/p1_sub.png) no-repeat;
	background-size: 100% 100%;
	width: 50%;
	height: 15%;
	border: none;
	position: absolute;
	left: 25%;
	top: 80%;
	outline: none;
}

.close-button {
	position: absolute;
	right: 10%;
	top: 23%;
	z-index: 1;
}

#rank-wrap {
	background: url(../img/ranking_bg.png) no-repeat;
	background-size: 100% 100%;
	width: 75%;
	height: 50%;
	position: absolute;
	left: 12.5%;
	top: 25%;
	padding-top: 15%;
	overflow: scroll;
}

#rank-wrap>ul {
	list-style: none;
	padding: 0 10px;
}

#rank-wrap li {
	border-bottom: 1px dashed #aaa;
	line-height: 60px;
}

.rank-number {
	display: inline-block;
	width: 30px;
	height: 60px;
	vertical-align: middle;
	text-align: center;
	font-size: 18px;
	font-weight: 900;
}


#rank-wrap li:nth-child(1) .rank-number {
	background: url(../img/p1_first.png) no-repeat center center;
	background-size: 22px 30px;
}

#rank-wrap li:nth-child(2) .rank-number {
	background: url(../img/p1_second.png) no-repeat center center;
	background-size: 22px 30px;
}

#rank-wrap li:nth-child(3) .rank-number {
	background: url(../img/p1_third.png) no-repeat center center;
	background-size: 22px 30px;
}

.rank-photo>img {
	vertical-align: middle;
	width: 40px;
	margin: 0 10px 0 5px;
}

.rank-score {
	float: right;
}

.alert-content {
	width: 75%;
	height: 50%;
	position: absolute;
	left: 12.5%;
	top: 25%;
	border: 2px solid #f00;
	background-color: #FDEBD3;
	overflow: scroll;
	border-radius: 8px;
}

.alert-content h2 {
	text-align: center;
	padding: 10px 0;
}

.alert-content p {
	padding: 0 10px;
	line-height: 1.4em;
}

/*第二页*/
#page2 {
	width: 100%;
	height: 100%;
	background: url(../img/bg2.png) no-repeat;
	background-size: 100% 100%;
	position: absolute;
	top: 0;
	left: 0;
	display: none;
	overflow: hidden;
}

#p2-frame {
	width: 80%;
	position: absolute;
	left: 10%;
	top: 10%;
}

#p2-text {
	width: 70%;
	position: absolute;
	left: 15%;
	top: 12%;
}

#time {
	width: 60%;
	position: absolute;
	left: 20%;
	top: 35%;	
}

.time-number {
	display: inline-block;
	width: 20%;
	height: 60px;
	background: url(../img/p2_scoring.png) no-repeat;
	background-size: 100% 100%;
	text-align: center;
	line-height: 60px;
	font-size: 30px;
	color: #fff;
}

.time-clock {
	display: inline-block;
	width: 30%;
	height: 60px;
	background: url(../img/shizhong.png) no-repeat;
	background-size: 100% 100%;
	vertical-align: top;
	text-align: center;
	line-height: 70px;
	color: #C19A6D;
	font-size: 25px;
	font-weight: 900;
}

#p2-money {
	width: 60%;
	position: absolute;
	left: 20%;
	top: 55%;
}

#p2-block {
	width: 100%;
	position: absolute;
	left: 0;
	bottom: 0;
}

#p2-hand {
	width: 30%;
	position: absolute;
	right: 0;
	bottom: 30%;
}

.fly-money {
	width: 60%;
	position: absolute;
	left: 20%;
	top: 55%;
	-webkit-animation: fly 1s;
}

@-webkit-keyframes fly{
	from{
		-webkit-transform: translateY(0) scale(1);
	}
	to{
		-webkit-transform: translateY(-1000px) scale(0);
	}
}

/*第三页*/
#page3 {
	background: url(../img/p3_bg.jpg) no-repeat;
	background-size: 100% 100%;
	height: 100%;
	display: none;
}

#p3-acquire {
	width: 80%;
	position: absolute;
	left: 10%;
	top: 15%;
}

#p3-money {
	font-size: 50px;
	color: #fff;
	width: 100%;
	text-align: center;
	position: absolute;
	left: 0;
	top: 25%;
}

#p3-result {
	font-size: 12px;
	color: #fff;
	width: 100%;
	text-align: center;
	position: absolute;
	left: 0;
	top: 35%;
}

#p3-best {
	width: 80%;
	text-align: center;
	position: absolute;
	left: 10%;
	top: 40%;
	background-color: #fff;
	color: #f00;
	padding: 5px 0;
	border-radius: 5px;
}

#p3-again {
	width: 25%;
	position: absolute;
	left: 15%;
	top: 55%;
}

#p3-share {
	width: 25%;
	position: absolute;
	right: 15%;
	top: 55%;
}

#share {
	width: 50%;
	position: absolute;
	right: 2%;
	top: 2%;
}








